﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SevenWizards1.CoreComponents
{
    class TileMapLayer
    {
        int[,] map;

        public TileMapLayer(int x, int y)
        {
            map = new int[y, x];
        }

        public int TileMapWidth
        {
            get { return map.GetLength(1); }
        }

        public int TileMapHeight
        {
            get { return map.GetLength(0); }
        }

        public void SetTile(int x, int y, int tileIndex)
        {
            map[y, x] = tileIndex;
        }

        public int GetTile(int x, int y)
        {
            return map[y, x];
        }
    }
}
